(function() {

  this.Url = {
    GetParameterByName: function(name) {
      var regex, regexS, results;
      name = name.toLowerCase();
      name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
      regexS = "[\\?&]" + name + "=([^&#]*)";
      regex = new RegExp(regexS, "gi");
      results = regex.exec(window.location.href);
      if (results === null) {
        return '';
      } else {
        return decodeURIComponent(results[1].replace(/\+/g, " "));
      }
    },
    GetParameterByNameOrEmptyString: function(name) {
      var result;
      result = Url.GetParameterByName(name);
      if (result === void 0) {
        return '';
      } else {
        return result;
      }
    },
    GetParameterByNameOrZero: function(name) {
      var result;
      result = Url.GetParameterByName(name);
      if (result === void 0) {
        return 0;
      } else {
        return result;
      }
    }
  };

}).call(this);
